﻿using ERP.ERPSystem.WarehouseManagement.Dto;
using ERP.Team.ProductionSystem;
using ERP.Team.WarehouseManagement;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;

namespace ERP.ERPSystem.WarehouseManagement
{
    /// <summary>
    /// 仓储管理-外协发料-xzc
    /// </summary>
    public interface IOutsourcedServices:IApplicationService
    {
        /// <summary>
        /// 新增外协发料
        /// </summary>
        /// <param name="issuingmaterialsdto"></param>
        /// <returns></returns>
        Task<int> AddIssuingMaterials(IssuingMaterialsDto issuingmaterialsdto);
        /// <summary>
        /// 更新外协发料
        /// </summary>
        /// <param name="issuingmaterialsdto"></param>
        /// <returns></returns>
        Task<int> UpdateIssuingMaterials(IssuingMaterialsDto issuingmaterialsdto);
        /// <summary>
        /// 删除外协发料
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task DeleteIssuingMaterials(int id);
        /// <summary>
        /// 查询外协发料
        /// </summary>
        /// <param name="getissuingmaterialsdto"></param>
        /// <returns></returns>
        Task<List<IssuingMaterials>> GetIssuingMaterials(GetIssuingMaterialsDto getissuingmaterialsdto);
        /// <summary>
        /// 查询外协工单数据
        /// </summary>
        /// <param name="getproductionworkordermaindto"></param>
        /// <returns></returns>
        Task<List<ProductionWorkOrderMain>> GetProductionWorkOrderMain(GetProductionWorkOrderMainDto getproductionworkordermaindto);
        /// <summary>
        /// 通过id查询到相应的外协发料
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<List<IssuingMaterials>> FindIssuingMaterials(int id);
        /// <summary>
        /// 批量删除外协发料
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task<int> BatchDeleteIssuingMaterials(List<int> ids);
    }
}
